package com.bdqn.paper;
/**
 * 第6章实战1在控制台输出路飞和诸葛亮的对话
 */
public class HelloSixSpring {
    private String one;
    private String two;

    // 构造函数
    public HelloSixSpring(String one, String two) {
        this.one = one;
        this.two = two;
    }

    public void print() {
        System.out.println("路飞: " + this.getOne() + " 诸葛亮: " + this.getTwo());
    }

    public String getOne() {
        return one;
    }

    public String getTwo() {
        return two;
    }
}